{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
	{% render "DrinkiitBlogBundle:Index:user_connected" %}
{% else %}
<nav>
<div id="nav_element">
	{% include "DrinkiitBlogBundle:Includes:connexion.html.twig" %}
</div>
{% endif %}

<div id="nav_element">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
	<div id="nav_element_link"><a href="{{ path('fos_user_change_password') }}">Mon profil</a></div>
	<div id="nav_element_link"><a href="{{ path('fos_user_security_logout') }}">Logout</a></div>
	</div>
	<div id="nav_element">
	{% if is_granted("ROLE_ADMIN") %}
		<div id="nav_element_link"><a href="{{ path('admin_index') }}">Accueil</a></div>
	{% else %}
		<div id="nav_element_link"><a href="{{ path('member_index') }}">Accueil</a></div>
	{% endif %}
	<div id="nav_element_link"><a href="{{ path('member_commande') }}">Menu</a></div>
	<div id="nav_element_link"><a href="{{ path('member_mes_menus') }}">Mes menus</a></div>
	<div id="nav_element_link"><a href="{{ path('member_mes_commandes') }}">Mes commandes</a></div>
	<div id="nav_element_link"><a href="{{ path('member_mes_operations') }}">Mes opérations</a></div>
	<div id="nav_element_link"><a href="{{ path('member_stats') }}">Statistiques personnelles</a></div>
	{% if is_granted("ROLE_ADMIN") %}
	</div>
	<div id="nav_element">
		<div id="nav_element_link"><a href="{{ path('admin_management_operations_drinkiit') }}">Finances du club</a></div>
		<div id="nav_element_link"><a href="{{ path('admin_management_user') }}">Membres</a></div>
		<div id="nav_element_link"><a href="{{ path('admin_management_commandes') }}">Commandes</a></div>
		<div id="nav_element_link"><a href="{{ path('admin_management_operations') }}">Opérations</a></div>
		<div id="nav_element_link"><a href="{{ path('admin_management_type_produit') }}">Type produits</a></div>
		<div id="nav_element_link"><a href="{{ path('admin_management_produit') }}">Produits</a></div>
		<div id="nav_element_link"><a href="{{ path('admin_management_article') }}">Articles</a></div>
	<div id="nav_element_link"><a href="{{ path('admin_stats') }}">Statistiques admin</a></div>
	{% endif %}
	</div>
	<div id="nav_element">
{% else %}
<div id="nav_element_link"><a href="{{ path('homepagei') }}">Accueil</a></div>
<div id="nav_element_link"><a href="{{ path('visitor_menu') }}">Menu</a></div>
{% endif %}

<div id="nav_element_link"><a href="{{ path('visitor_suggestion') }}">Suggestions</a></div>
<div id="nav_element_link"><a href="{{ path('visitor_sitemap') }}">Plan du site</a></div>
<div id="nav_element_link"><a href="{{ path('visitor_stats') }}">Statistiques</a></div>
<div id="nav_element_link"><a href="{{ path('visitor_contact') }}">Contact</a></div>
</div>

<div id="nav_element">
	<div id="nav_element_link"><a href="{{ path('change_mobile_pc') }}">Changer mobile/pc</a></div>
</div>
</nav>
